﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="AddProtectCust.aspx.cs" Inherits="Module_CustManger_AddCust" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <ext:PageManager ID="PageManager1" runat="server"  AutoSizePanelID="Panel1"/>
    <ext:Panel ID="Panel1" runat="server" BodyPadding="5px" EnableBackgroundColor="true"
        ShowBorder="false" ShowHeader="false" Title="Panel" Layout="Row">
            <Toolbars >
                <ext:Toolbar runat="server" >
                    <Items  >
                        <ext:Button ID="BtnSave" runat="server" Text="保存" OnClick="BtnSave_Click">
                        </ext:Button>
                        <ext:Button ID="Button2" runat="server" Text="取消">
                        </ext:Button>
                         <ext:Button ID="BtnCheck" runat="server" Text="检查客户是否已经保护" ValidateForms="Form2" Hidden="true">
                        </ext:Button>
                         
                    </Items>
                </ext:Toolbar>
            </Toolbars>
        <Items>
            <ext:Panel ID="Panel2" runat="server" BodyPadding="0px" EnableBackgroundColor="true"
                ShowBorder="false" ShowHeader="false" Title="Panel" RowHeight="50%">
                <Items>
                    <ext:Form ID="Form2" runat="server" BodyPadding="0px" EnableBackgroundColor="true" ShowBorder="false" ShowHeader ="false" Title="Form">
                        <Rows>
                            <ext:FormRow ID="FormRow1" runat="server">
                               <Items >
                                   <ext:TextBox ID="CustName" runat="server" Label="客户名称" Text="" AutoPostBack="true"  
                                       OnTextChanged="CustName_TextChanged">
                                   </ext:TextBox>
                               </Items> 
                            </ext:FormRow>
                            <ext:FormRow ID="FormRow2" runat="server">
                               <Items >
                                   <ext:TextBox ID="CompanyName" runat="server" Label="客户公司名称" Text="" AutoPostBack="true"   OnTextChanged="CompanyName_TextChanged">
                                   </ext:TextBox>
                               </Items> 
                            </ext:FormRow>
                            <ext:FormRow ID="FormRow3" runat="server">
                               <Items >
                                   <ext:TextBox ID="TelPhone" runat="server" Label="客户电话" Text="" AutoPostBack="true"  
                                       OnTextChanged="TelPhone_TextChanged">
                                   </ext:TextBox>
                               </Items> 
                            </ext:FormRow>
                            <ext:FormRow ID="FormRow4" runat="server">
                               <Items >
                                   <ext:TextBox ID="CustAddress" runat="server" Label="客户地址" Text="" AutoPostBack="true" 
                                       OnTextChanged="CustAddress_TextChanged">
                                   </ext:TextBox>
                               </Items> 
                            </ext:FormRow>
                            <ext:FormRow ID="FormRow5" runat="server">
                        <Items>
                            <ext:TextBox ID="Legal" runat="server" Label="法人代表" Text=""   OnTextChanged="Legal_TextChanged" AutoPostBack="true" >
                            </ext:TextBox>
                        </Items>
                    </ext:FormRow>
                        </Rows>
                    </ext:Form>
                </Items>
            </ext:Panel>
            <ext:Panel ID="Panel3" runat="server" BodyPadding="0px" EnableBackgroundColor="true" RowHeight="50%" 
                ShowBorder="false" ShowHeader="false" Title="Panel" Layout="Fit">
                <Items>
                    <ext:Grid ID="Grid1" runat="server" EnableCheckBoxSelect="true" EnableRowNumber="true"
                        Title="已经存在的客户名称">
                        <Columns>
                            <ext:BoundField HeaderText="客户名称" Width="200px"  DataField="CustName"/>
                        </Columns>
                    </ext:Grid>
                </Items>
            </ext:Panel>
        </Items>
    </ext:Panel>
    </form>
</body>
</html>
